export const languagesArr = [
  {
    code: "cs-CZ",
    name: "Čeština",
    file: "cs-CZ.json"
  },
  {
    code: "de-DE",
    name: "Deutsch",
    file: "de-DE.json"
  },
  {
    code: "en-GB",
    name: "English",
    file: "en-GB.json"
  },
  {
    code: "es-ES",
    name: "Español",
    file: "es-ES.json"
  },
  {
    code: "fa-IR",
    name: "فارسی",
    file: "fa-IR.json"
  },
  {
    code: "fr-FR",
    name: "Français",
    file: "fr-FR.json"
  },
  {
    code: "hu-HU",
    name: "Magyar",
    file: "hu-HU.json"
  },
  {
    code: "id-ID",
    name: "Bahasa Indonesia",
    file: "id-ID.json"
  },
  {
    code: "it-IT",
    name: "Italiano",
    file: "it-IT.json"
  },
  {
    code: "pt-PT",
    name: "Português",
    file: "pt-PT.json"
  },
  {
    code: "ru-RU",
    name: "Русский",
    file: "ru-RU.json"
  },
  {
    code: "tr-TR",
    name: "Türkçe",
    file: "tr-TR.json"
  },
  {
    code: "zh-CN",
    name: "简体中文",
    file: "zh-CN.json"
  },
  {
    code: "zh-TW",
    name: "繁體中文",
    file: "zh-TW.json"
  }
];

// 导出语言代码数组，方便快速访问所有支持的语言代码
 export const languageCodes = languagesArr.map(lang => lang.code)

export const languages = Object.values(languagesArr).filter((lang) => {
  return ['cs-CZ', 'de-DE', 'en-GB', 'es-ES', 'fa-IR', 'fr-FR', 'hu-HU', 'id-ID', 'it-IT', 'pt-PT', 'ru-RU', 'tr-TR', 'zh-CN', 'zh-TW'].includes(lang.code)
})